package run.halo.app.repository.front;

import java.util.Optional;
import org.springframework.lang.NonNull;
import run.halo.app.model.entity.front.Customer;
import run.halo.app.repository.base.BaseRepository;

public interface CustomerRepository extends BaseRepository<Customer, Integer> {

    @NonNull
    Optional<Customer> findByUsername(@NonNull String username);

    @NonNull
    Optional<Customer> findByEmail(@NonNull String email);

    @NonNull
    Optional<Customer> findByPhoneNumber(@NonNull String phoneNumber);

    @NonNull
    Optional<Customer> findByUuid(@NonNull String UUID);

}
